import { request } from '@/utils'

export default {
  getDoctors: (params = {}) => request.post('doctor/list', params),
  getParentDepartments: (params = {}) => request.post('department/parent/page', params),
  getDepartments: () => request.get('department/list'),
  getPostById: (id) => request.get(`/post/${id}`),
  addPost: (data) => request.post('/post', data),
  updateDoctor: (data) => request.post(`/user/update/doctor`, data), 
  deleteUser: (id) => request.post(`/user/delete/${id}`),
}
